gdkwindow: avoid updating background pattern if it matches previous
authorChristian Hergert <christian@hergert.me>
Tue, 16 Jun 2015 21:40:09 +0000 (14:40 -0700)
committerChristian Hergert <christian@hergert.me>
Tue, 16 Jun 2015 21:40:09 +0000 (14:40 -0700)
commit213b92e644645d4228b98ec86a0db4e84ef48120
tree09dd0a34e9ef110d47ebac1c9aeb0d34b5b1947e
parent569e59b2c580be4261e5e82252ee197a016697a2
gdkwindow: avoid updating background pattern if it matches previous

Background patterns are often updated when style changes. In many cases,
the new pattern will match the previous. We can optimize out the
invalidation that will occur upon resetting the same pattern.
gdk/gdkwindow.c